<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice"%>

<f:view>

	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Upload</title>
	<link rel="stylesheet" type="text/css"
		href="./xmlhttp/css/rime/rime.css" />
	</head>
	<body>
	<ice:form>
		<ice:panelGrid columns="1">

			<ice:panelGroup>
				<ice:outputLabel id="labelTipoUpload" value="Tipo:"
					for="comboTipoUp" />
				<ice:selectOneMenu id="comboTipoUp" value="#{uploadAction.item}">
					<f:selectItems id="itensTipo" value="#{uploadAction.tipos}" />
				</ice:selectOneMenu>
			</ice:panelGroup>

			<ice:panelGroup>
				<ice:inputFile id="upload" file="#{uploadAction.file}"
					uniqueFolder="false" uploadDirectory="/WEB-INF/arquivos-upload" />
				<ice:message style="color: red;" id="uploadError" for="upload" />
			</ice:panelGroup>

			<ice:panelGroup>
				<ice:outputLabel id="labelNome" value="Nome:" for="upNome" />
				<ice:outputText id="upNome" value="#{uploadAction.arquivo.nome}" />
			</ice:panelGroup>

			<ice:panelGroup>
				<ice:outputLabel id="labelPath" value="Path:" for="upPath" />
				<ice:outputText id="upPath" value="#{uploadAction.arquivo.path}" />
			</ice:panelGroup>

			<ice:commandButton value="salvar" action="#{uploadAction.enviar}" />
		</ice:panelGrid>
	</ice:form>
	</body>
	</html>
</f:view>

















